//
// Created by zhouyi on 2019/11/22.
//

#include "TestThread.h"


#include <iostream>
#include <queue>
#include <pthread.h>

using namespace std;


void *run(void *args) {
    int i = *(int *) args;

    printf("int i %d\n", i);
    int j = 0;
    for (; j < 10000; ++j) {
        printf("int i %d\n",  j);
    }
    return 0;
}

int main(int argc, char *argv[]) {
    int i = 100;
    pthread_t pid;
    pthread_create(&pid, 0, run, &i);
    pthread_join(pid, 0);
    printf("Main Thread\n");

    return 0;
}